21f158b937ea1e8db8f707714d65c31f0111298e,platform/lang-api/src/com/intellij/psi/codeStyle/CodeStyleSettings.java,TypeToNameMap,equals,#Object#,823

Before Change


    public boolean equals(Object other) {
      if (other instanceof TypeToNameMap) {
        TypeToNameMap otherMap = (TypeToNameMap)other;
        if (myPatterns.size() != otherMap.myPatterns.size()) {
          return false;
        }
        if (myNames.size() != otherMap.myNames.size()) {
          return false;
        }
        for (int i = 0; i < myPatterns.size(); i++) {
          String s1 = myPatterns.get(i);
          String s2 = otherMap.myPatterns.get(i);
          if (!Comparing.equal(s1, s2)) {
            return false;
          }
        }
        for (int i = 0; i < myNames.size(); i++) {
          String s1 = myNames.get(i);
          String s2 = otherMap.myNames.get(i);
          if (!Comparing.equal(s1, s2)) {
            return false;
          }
        }
        return true;
      }
      return false;
    }

After Change


    public boolean equals(Object other) {
      if (other instanceof TypeToNameMap) {
        TypeToNameMap otherMap = (TypeToNameMap)other;
        return myPatterns.equals(otherMap.myPatterns) && myNames.equals(otherMap.myNames);
      }
      return false;
    }